﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace Easyleave.Logic.Validation
{
    public class ValidationFactory
    {
        public static IValidation GetValidation()
        {
            string typeName = ConfigurationManager.AppSettings["plugin.validation"];
            return (IValidation)Activator.CreateInstance(Type.GetType(typeName));
        }
    }
}
